﻿using AntdUI;
using PosClient.Model;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace PosClient.Controls
{
    public partial class ExChangeView : Control
    {
        public ExChangeView(BindingList<PromoteEventItem> promotes)
        {
            InitializeComponent();
            InitLoad(promotes);
            InitEvent();
        }

        private void InitLoad(BindingList<PromoteEventItem> promotes)
        {
            goodGrid1.DataSource = promotes;
        }

        private void InitEvent()
        {
            this.KeyUp += (s, e) =>
            {
                goodGrid1.GridKeyUp(e.KeyData);
            };

            this.goodGrid1.GridIndex += (s, e) =>
            { 
                
            };
        }
    }
}
